package smlab.manager
{
	import flash.display.InteractiveObject;
	import flash.display.Stage;
	
	/**
	 * 焦点管理类
	 * @author simon
	 * 
	 */
	public class FocusMannager_SM
	{
		static private var _instance:FocusMannager_SM;
		
		public function FocusMannager_SM()
		{
			if(_instance)throw new Error("FocusMannager_singleton_Error");
		}
		
		static public function getInstance():FocusMannager_SM{
			if(!_instance)_instance=new FocusMannager_SM;
			return _instance;
		}
		
		public function setStageFocus(stage:Stage,target:InteractiveObject):void{
			if(!stage)return;
			stage.focus=target;
		}
		
	}
}